@extends('admins.layouts.default')
@section('content')
	<div class="row">
		<span class="pull-rleft">Create User</span>
		<span class="pull-right">{{ link_to_route('admin.user.index', 'Cancel') }}</span>
	</div>
	<div class="row">
		@if ($errors->any())
			{{ implode('', $errors->all('<div class="alert alert-danger" role="alert">:message</div>')) }}
		@endif
	
		{{ Form::open(['route' => 'admin.user.store', 'role' => 'form']) }}
			<div class="form-group">
			 	{{ Form::label('name', 'Name') }}
			 	{{ Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'Enter Name']) }}
			</div>
			<div class="form-group">
			 	{{ Form::label('username', 'Username') }}
			 	{{ Form::text('username', null, ['class' => 'form-control', 'placeholder' => 'Enter Username']) }}
			</div>
			<div class="form-group">
			 	{{ Form::label('password', 'Password') }}
			 	{{ Form::password('password', ['class' => 'form-control', 'placeholder' => 'Enter Password']) }}
			</div>
			<div class="form-group">
			 	{{ Form::label('password_confirmation', 'Confirm Password') }}
			 	{{ Form::password('password_confirmation', ['class' => 'form-control', 'placeholder' => 'Enter Confirm Password']) }}
			</div>
			<div class="form-group">
			 	{{ Form::label('email', 'Email') }}
			 	{{ Form::email('email', null, ['class' => 'form-control', 'placeholder' => 'Enter Email']) }}
			</div>
			<div class="form-group">
			 	{{ Form::label('phone', 'Phone') }}
			 	{{ Form::text('phone', null, ['class' => 'form-control', 'placeholder' => 'Enter Phone']) }}
			</div>
			{{ Form::submit('Save', ['class' => 'btn btn-info']) }}
		{{ Form::close() }}
	</div>
@stop